
cap log close	
log  using  .../exp_stats.smcl,replace

version 13	
use .../sample_estimation_1_rev1_exp_Sep2020.dta, clear

drop if year != 2000
expand 10 if  everself1sum == 0 

**actual exits  
sum durvar 
sum durvar if sedum == 1
sum durvar if sedum == 1 & lcens_spell == 0
sum durvar if sedum == 1 & lcens_spell == 1
sum durvar if sedum == 0 
sum durvar if sedum == 0 & lcens_spell == 0
sum durvar if sedum == 0 & lcens_spell == 1
 
** sum statistics netincdiff and convexity naer
sum netincdiff  netincdiff_flat
sum netincdiff  netincdiff_flat if sedum == 1
sum netincdiff  netincdiff_flat if sedum == 1 & lcens_spell == 0
sum netincdiff  netincdiff_flat if sedum == 1 & lcens_spell == 1
sum netincdiff  netincdiff_flat if sedum == 0 
sum netincdiff  netincdiff_flat if sedum == 0 & lcens_spell == 0
sum netincdiff  netincdiff_flat if sedum == 0 & lcens_spell == 1

sum convexity_naer convexity_naer_flat
sum convexity_naer convexity_naer_flat if sedum == 1 
sum convexity_naer convexity_naer_flat if sedum == 1 & lcens_spell == 0
sum convexity_naer convexity_naer_flat if sedum == 1 & lcens_spell == 1
sum convexity_naer convexity_naer_flat if sedum == 0
sum convexity_naer convexity_naer_flat if sedum == 0 & lcens_spell == 0
sum convexity_naer convexity_naer_flat if sedum == 0 & lcens_spell == 1



log close
